package ExamSystemClient.model;

import java.awt.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 学员信息
 */
public class Student extends User {

    /**
     * 学号
     */
    private int number;

    /**
     * 年龄
     */
    private int age;

    /**
     * 历史分数
     */
    private List<Double> scores;

    public Student() {
    }

    public Student(int number, String userName, int age) {
        super(userName, "000000");//初始密码6个0
        this.number = number;
        this.age = age;
    }

    public List<Double> getScores() {
        return scores;
    }

    public void setScores(List<Double> scores) {
        this.scores = scores;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "number=" + number +
                ",userName=" + super.getUserName() +
                ",password=" + super.getPassword() +
                ", age=" + age +
                ", scores=" + scores +
                '}';
    }
}
